#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include"tui.h"
#include"tuia.h"
#include<QMessageBox>
#include<QString>
#include<QImage>
#include<QPainter>
#include<QKeyEvent>
#include<QEvent>
#include<QRect>
#include<QPushButton>
namespace Ui {
class Widget;
}

class Widget : public QWidget
{
    Q_OBJECT

public:
    explicit Widget(QWidget *parent = 0);
    ~Widget();
    void keyPressEvent(QKeyEvent* event);
    void paintEvent(QPaintEvent *event);
void myslot();
 void rechange();
private:
    Ui::Widget *ui;
    QPushButton b1;

    QPushButton b3;

private:QPainter* pMap;
    boxGame* pBox;
    QMediaPlayer *player;
    QMediaPlaylist *playlist;
    QPushButton b;
QPushButton c;QPushButton d;
   int nScore=0;
   tuia w;
};

#endif // WIDGET_H
